import request from "@/utils/request";
/**
 *  获取所有任务列表接口
 *
 * @param {*} data promise
 * @returns
 */
export const getAllTask = (params,data) => {
    return request({
        url: "/task/getAllTask",
        method: "POST",
        params:params,
        data:data,
    });
};
export const getTaskDetail = (params) => {
    return request({
        url: "/task/getTaskDetail",
        method: "GET",
        params:params,
    });
};
export const updateTask = (data) => {
    return request({
        url: "/task/updateTask",
        method: "POST",
        data:data,
    });
};

export const addTask = (data) => {
    return request({
        url: "/task/addTask",
        method: "POST",
        data:data,
    });
};
export const deleteTask = (params) => {
    return request({
        url: "/task/deleteTask",
        method: "POST",
        params:params,
    });
};
export const getTaskByGroupId = (params) => {
    return request({
        url: "/task/getTaskByGroupId",
        method: "GET",
        params:params,
    });
};

